package com.kordar.auth;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface AuthMapper extends BaseMapper<Admin> {
    @Update("update sya_admin set ${field}=#{value} where id = #{id}")
    boolean updateUserField(@Param("id") long userId, @Param("field") String field, @Param("value") Object value);
}
